home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / contrib / f2c95201 / src / libf77 / r_lg10.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-04  |  212 b   |  16 lines

  1. #include "f2c.h"
  2.  
  3. #define log10e 0.43429448190325182765
  4.  
  5. #ifdef KR_headers
  6. double log();
  7. double r_lg10(x) real *x;
  8. #else
  9. #undef abs
  10. #include "math.h"
  11. double r_lg10(real *x)
  12. #endif
  13. {
  14. return( log10e * log(*x) );
  15. }
  16.